package com.qinghuan.ssm.service.impl;

import com.qinghuan.ssm.mapper.DeptMapper;
import com.qinghuan.ssm.pojo.Dept;
import com.qinghuan.ssm.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: dubao
 * @Date: 2022/4/25 20:24
 * @Description:
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    public List<Dept> getDepts() {
        return deptMapper.selectByExample(null);
    }
}
